﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ExtraButton : Singleton<ExtraButton>
{
    public GameObject privacyBtn;
    public GameObject moreGameBtn;
    public GameObject quitBtn;
    public GameObject addIconBtn;
    public void Awake()
    {
        AdManager.Instance.AddBtn(privacyBtn, moreGameBtn, quitBtn, addIconBtn);
    }
    public void PressPrivacyBtn(GameObject panel)
    {
        AdManager.Instance.Hide(panel);
    }
    public void PressMoreGamesBtn()
    {
        AdManager.Instance.MoreGame();
    }
    public void PressAddIconBtn()
    {
        AdManager.Instance.AddDesktopIcon();
    }
    public void PressQuitGameBtn()
    {
        AdManager.Instance.Quit();
    }
    public void PressBuyMoney()
    {
        AdManager.Instance.ShowVideo(() =>
        {
            // PlayerPrefs.SetInt(Constants.totalCoins, PlayerPrefs.GetInt(Constants.totalCoins) + 1000);
        });
    }
}
